package TeXing.src.Day1.ZuoYe;

import java.util.Arrays;
import java.util.Scanner;

/*5：定义一个字符串，输出他对应的字节和字符。*/
public class ZuoYe5 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String s=input.next();
        char []s1=s.toCharArray();
        byte[]s2=s.getBytes();
        for(int i=0;i<s.length();i++){
            System.out.println(s1[i]+"  "+s2[i]);
        }
    }
}
